package com.ajx.blog.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*
 * @Author: 姜东浩
 * @Date: 2022-04-22 23:52:23
 * 
 * @Description: 发送私信
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "message_info")
public class MessageInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid; // 信息表主键id

    @TableField(value = "content")
    private String content; // 信息内容

    @TableField(value = "createtime")
    private String createtime; // 创建时间 数据库timestamp类型,默认自动添加

    @TableField(value = "from_uid")
    private Integer fromUid; // 发信人

    @TableField(value = "to_uid")
    private Integer toUid; // 收信人

    @TableField(value = "readstatus")
    private Integer readstatus; // 读取状态:已读/未读

    @TableField(value = "astatus")
    private String astatus; // 状态

    @TableField(value = "remark")
    private String remark; // 备注

}
